//引入项目中全部的全局组件
import SvgIcon from '../components/SvgIcon/Svgicon.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//全局组件对象
const overAllComponent = {SvgIcon}
export default {
    //自定义插件方法
    install(app:any){
        //对象转数组，遍历
        Object.keys(overAllComponent).forEach(key => {
            //注册全局组件
            app.component(key,overAllComponent[key])
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
          }
    }
}